package com.ruoyi.system.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 退货单对象 refund_order
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class RefundOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 退货单号 */
    @Excel(name = "退货单号")
    private String no;

    /** 销售单ID */
    @Excel(name = "销售单ID")
    private Long salesOrderId;

    /** 制单人（登录人） */
    @Excel(name = "制单人", readConverterExp = "登=录人")
    private String createOrderUser;

    /** 退货明细信息 */
    private List<RefundOrderInfo> refundOrderInfoList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setNo(String no) 
    {
        this.no = no;
    }

    public String getNo() 
    {
        return no;
    }
    public void setSalesOrderId(Long salesOrderId) 
    {
        this.salesOrderId = salesOrderId;
    }

    public Long getSalesOrderId() 
    {
        return salesOrderId;
    }
    public void setCreateOrderUser(String createOrderUser) 
    {
        this.createOrderUser = createOrderUser;
    }

    public String getCreateOrderUser() 
    {
        return createOrderUser;
    }

    public List<RefundOrderInfo> getRefundOrderInfoList()
    {
        return refundOrderInfoList;
    }

    public void setRefundOrderInfoList(List<RefundOrderInfo> refundOrderInfoList)
    {
        this.refundOrderInfoList = refundOrderInfoList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("no", getNo())
            .append("salesOrderId", getSalesOrderId())
            .append("createTime", getCreateTime())
            .append("createOrderUser", getCreateOrderUser())
            .append("refundOrderInfoList", getRefundOrderInfoList())
            .toString();
    }
}
